<template>
    <div v-for="(value,name) in user" :key="name">
        {{name}}:{{value}}
    </div>
    </template>
    
    <script setup>
    import {reactive} from 'vue'
    const user = reactive({
        name:'张三',
        age:18,
        gender:'男'
    })
    </script>
    